package com.ponhu.ea2.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Wang
 * @date 2021/11/18 11:33 上午
 */
@ApiModel("云商属性DTO")
@Data
@Accessors(chain = true)
public class CloudTradePropertyDto implements Serializable {
    private static final long serialVersionUID = 6211820557801283039L;

    @NotEmpty(message = "属性名称不能为空")
    @ApiModelProperty("属性名称")
    private String name;

    @NotEmpty(message = "属性值不能为空")
    @ApiModelProperty("属性值")
    private String value;
}
